{"ast":null,"code":"import * as React from 'react';\nimport useEnhancedEffect from './useEnhancedEffect';\n\n/**\n * https://github.com/facebook/react/issues/14099#issuecomment-440013892\n */\nexport default function useEventCallback(fn) {\n  const ref = React.useRef(fn);\n  useEnhancedEffect(() => {\n    ref.current = fn;\n  });\n  return React.useCallback(function () {\n    return (\n      // @ts-expect-error hide `this`\n      // tslint:disable-next-line:ban-comma-operator\n      (0, ref.current)(...arguments)\n    );\n  }, []);\n}","map":{"version":3,"names":["React","useEnhancedEffect","useEventCallback","fn","ref","useRef","current","useCallback"],"sources":["/data/messenger.client/node_modules/@mui/utils/esm/useEventCallback.js"],"sourcesContent":["import * as React from 'react';\nimport useEnhancedEffect from './useEnhancedEffect';\n\n/**\n * https://github.com/facebook/react/issues/14099#issuecomment-440013892\n */\nexport default function useEventCallback(fn) {\n  const ref = React.useRef(fn);\n  useEnhancedEffect(() => {\n    ref.current = fn;\n  });\n  return React.useCallback((...args) =>\n  // @ts-expect-error hide `this`\n  // tslint:disable-next-line:ban-comma-operator\n  (0, ref.current)(...args), []);\n}"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,OAAOC,iBAAiB,MAAM,qBAAqB;;AAEnD;AACA;AACA;AACA,eAAe,SAASC,gBAAgB,CAACC,EAAE,EAAE;EAC3C,MAAMC,GAAG,GAAGJ,KAAK,CAACK,MAAM,CAACF,EAAE,CAAC;EAC5BF,iBAAiB,CAAC,MAAM;IACtBG,GAAG,CAACE,OAAO,GAAGH,EAAE;EAClB,CAAC,CAAC;EACF,OAAOH,KAAK,CAACO,WAAW,CAAC;IAAA;MACzB;MACA;MACA,CAAC,CAAC,EAAEH,GAAG,CAACE,OAAO,EAAE,YAAO;IAAC;EAAA,GAAE,EAAE,CAAC;AAChC"},"metadata":{},"sourceType":"module"}